var i = 3;

var str = `var ok${i} = new Promise((resolve, reject) => {
		resolve('${`第${i}个成功promise ${i}`}')
})`


// console.log(str)
// console.log(typeof ok3)

// eval(str)
// console.log(typeof ok3)


console.log('-----------------------\n')
for(var i = 1; i <=10; i++){
	var okStr = `var ok${i} = new Promise((resolve, reject) => {
		resolve('${`第${i}个成功promise ${i}`}')
	})`

	eval(okStr)
}

console.log(ok1)
console.log(ok2)
